<template>
    <div class="app-main-container">
        <Draggable>
            <Home v-if="store.loginFlag"></Home>
            <NoPermission v-else></NoPermission>
        </Draggable>
    </div>
</template>

<script setup lang="ts">
import { loginFlagStore } from '../../store'
import Home from './Home.vue'
import NoPermission from '../../app/components/NoPermission/index.vue'
import Draggable from '../../app/components/Draggable/index.vue'
const store = loginFlagStore()
</script>

<style scoped lang="scss">
.app-main-container {
    font-size: 12px;
    color: #000;
}
</style>
